package com.cmdb.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cmdb.common.annotation.Excel;
import com.cmdb.common.core.domain.BaseEntity;

/**
 * 服务器连接信息对象 sys_asset_gx
 * 
 * @author 陈玉强
 * @date 2025-06-01
 */
@Data
public class SysAssetGx extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** ID */
    @Excel(name = "序号ID")
    private Long id;

    /** 访问途径 */
    @Excel(name = "访问途径*")
    private String accessMethod;
    private String accessMethodName;
    /** 访问域名 */
    @Excel(name = "访问域名*")
    private String accessDomain;

    /** 访问IP */
    @Excel(name = "访问IP*")
    private String accessIp;

    /** 本地端口 */
    @Excel(name = "本地端口*")
    private String localPort;

    /** 公网端口 */
    @Excel(name = "公网端口*")
    private String publicMappedPort;

    /** 服务器IP */
    @Excel(name = "服务器IP地址*")
    private String serverIp;

    /**  */
    @Excel(name = "资产ID*")
    private String assetId;

    /** 是否有效 */
    private Integer isActive;





    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accessDomain", getAccessDomain())
            .append("accessIp", getAccessIp())
            .append("localPort", getLocalPort())
            .append("publicMappedPort", getPublicMappedPort())

            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isActive", getIsActive())
            .toString();
    }
}
